package edu.base.util;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResultCode {

    //成功
    SUCCESS(200,"成功"),
    //失败
    FAIL(500,"失败"),
    //注册用户名存在
    REGIST_USERIDCARD_FAIL(500501,"用户已注册"),
    //邮箱存在
    REGIST_EMAIL_FAIL(500502,"邮箱已存在"),
    //手机号存在
    REGIST_PHONE_FAIL(500503,"手机号已存在"),
    //身份证已存在
    REGIST_IDCARD_FAIL(500504,"身份证已存在"),
    //用户不存在
    USER_NOT_FOUND(500505,"用户不存在,请注册"),
    //密码错误
    LOGIN_PASSWORD_ERROR(500506,"密码错误"),
    //用户未登录
    NOT_LOGIN_FAIL(500507,"用户未登录"),
    //验证码错误
    LOGIN_CODE_ERROR(500508,"验证码错误"),

    ok(999,"成功");

    private Integer code;       //结果号码
    private String message;     //结果信息

}
